<?php

/**
 * @Author: Wang Chunsheng 2192138785@qq.com
 * @Date:   2020-03-08 03:38:18
 * @Last Modified by:   Wang Chunsheng 2192138785@qq.com
 * @Last Modified time: 2020-03-10 02:20:46
 */


namespace common\addons\diandi_shop\models;

use Yii;

/**
 * This is the model class for table "dd_diandi_shop_store".
 *
 * @property int $id
 * @property string|null $title 商家名称
 * @property string|null $intro 简介
 * @property string|null $address 商家地址
 * @property int|null $mobile 商家电话
 * @property string|null $describe 商家详情
 * @property int|null $create_time
 * @property int|null $update_time
 */
class DdDiandiShopStore extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'dd_diandi_shop_store';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['mobile', 'startingPrice', 'create_time', 'update_time', 'shippingDees'], 'integer'],
            [['title'], 'string', 'max' => 50],
            [['intro', 'address', 'describe', 'logo', 'banner'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'title' => '商家名称',
            'intro' => '简介',
            'address' => '商家地址',
            'mobile' => '商家电话',
            'describe' => '商家详情',
            'logo' => '商家logo',
            'banner' => '横幅背景',
            'startingPrice' => '起送价',
            'shippingDees' => '配送费',
            'create_time' => 'Create Time',
            'update_time' => 'Update Time',
        ];
    }
}
